let arr = [1,2,3,4,5,6,7,8,9];
let page = 1;
let size = 5;
let arr2 = arr.splice((page-1)*size,size);
console.log( arr2 );